#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<string.h>
#include<assert.h>
char* my_strcat(char* dest,const char* src)
{
	char* start = dest;
	assert(dest && src);
	while (*dest != '\0')
	{
		dest++;
	}
	/*while (*src != '\0')
	{
		*dest = *src;
		dest++;
		src++;
	}
	*dest = *src;*/
	while (*dest++ = *src++)
	{
		;
	}
	return start;

}
int main()
{
	char arr1[20] = "hello ";
	char arr2[] = "world";
	my_strcat(arr1, arr2);
	printf("%s", arr1);
	return 0;
}